Crate anchor_attribute_error
source ·Macros
- Generates an
Error::AnchorError
that includes file and line information.
Attribute Macros
- Generates
Error
andtype Result<T> = Result<T, Error>
types to be used as return types from Anchor instruction handlers. Importantly, the attribute implementsFrom
on theErrorCode
to support converting from the user defined error enum into the generatedError
.